package entity;
import java.util.ArrayList;


public class WebPage {

		private String url;
		private String keywords;
		private String descriptionOrTitle;
		private String content;
		private ArrayList urlList;
		
		public WebPage(String url, String keywords, String descriptionOrTitle, String content, ArrayList urlList) {
			this.url = url;
			this.keywords = keywords;
			this.descriptionOrTitle = descriptionOrTitle;
			this.content = content;
			this.urlList = urlList;
		}
		
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}

		public String getKeywords() {
			return keywords;
		}
		public void setKeywords(String keywords) {
			this.keywords = keywords;
		}
		public String getDescriptionOrTitle() {
			return descriptionOrTitle;
		}
		public void setDescriptionOrTitle(String descriptionOrTitle) {
			this.descriptionOrTitle = descriptionOrTitle;
		}
		public String getContent() {
			return content;
		}
		public void setContent(String content) {
			this.content = content;
		}
		public ArrayList getUrlList() {
			return urlList;
		}
		
		public void setUrlList(ArrayList urlList) {
			this.urlList = urlList;
		}
		
		public String toString() {
			String webpage = "";
			
			webpage += "URL : " + url + "\n";
			webpage += "Keywords :" + keywords +"\n";
			webpage += "Description/Title :" + descriptionOrTitle +"\n";
			webpage += "Content :" + content +"\n";
			webpage += "Url List :";
			
			for(int i = 0; i < urlList.size(); i++) {
				webpage += urlList.get(i) + "\n";
			}
			
			
			
			return webpage;
			
		}
}
